import request from "@/utils/request";

export function statement_index(params) {
  return request({
    url: "/online/index",
    method: "get",
    params
  });
}

export function statement_info(params) {
  return request({
    url: "/online/info",
    method: "get",
    params
  });
}

export function statement_account(data) {
  return request({
    url: "/online/account",
    method: "post",
    data: data
  });
}

// 订单结算
export function statement_paid(data) {
  return request({
    url: "/online/paid",
    method: "post",
    data: data
  });
}
// 退货单结算
export function statement_return_paid(data) {
  return request({
    url: "/online/returnPaid",
    method: "post",
    data: data
  });
}

// 用户批量对账
export function account_index(params) {
  return request({
    url: "/orderAccount/index",
    method: "get",
    params
  });
}

export function account_editPrice(data) {
  return request({
    url: "/orderAccount/editPrice",
    method: "post",
    data: data
  });
}

// 在线支付结算单
export function onlineSettle_index(params) {
  return request({
    url: "/onlineSettle/index",
    method: "get",
    params
  });
}

// 在线支付账单导出----订单
export function export_online_info_order(data) {
  return request({
    url: "/export/export_online_info_order",
    method: "post",
    responseType: "blob",
    data: data
  });
}

// 在线支付账单导出----退货单
export function export_online_info(data) {
  return request({
    url: "/export/export_online_info",
    method: "post",
    responseType: "blob",
    data: data
  });
}

// 在线支付结算单导出----列表
export function export_onlineSettle_list(data) {
  return request({
    url: "/export/export_onlineSettle_list",
    method: "post",
    responseType: "blob",
    data: data
  });
}

// 在线支付账单列表导出
export function export_online(data) {
  return request({
    url: "/export/export_online",
    method: "post",
    responseType: "blob",
    data: data
  });
}
